package com.cskaoyan.shopping.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: duolaimall
 * @description: 存入redis中的可按添加时间排序的商品
 * @author: Lexis
 * @create: 2022-05-20 10:08
 **/
@NoArgsConstructor
@Data
public class SortCartProduct extends CartProductDto {
    private Date addTime;


    public SortCartProduct(CartProductDto cartProductDto, Date addTime) {
        super(cartProductDto.getProductId(), cartProductDto.getSalePrice(), cartProductDto.getProductNum(), cartProductDto.getLimitNum(), cartProductDto.getChecked(), cartProductDto.getProductName(), cartProductDto.getProductImg());
        this.addTime = addTime;
    }
}
